package com.yjd.comm.system.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.model.PagerModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.system.dto.OperParamDto;
import com.yjd.comm.system.model.LinkageModel;

/**
 * <b>description</b>：数据字典业务接口<br>
 * <b>time</b>：2014-11-08 14:31:38 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface ILinkageService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public LinkageModel insert(LinkageModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(LinkageModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param linkage_id
	 * @param operParamDto 
	 * @return
	 * @throws Exception
	 */
	public int delete(int linkage_id, OperParamDto operParamDto) throws Exception;

	public PagerModel getMyPageModel(Map paramMap) throws Exception;

	public void insertByCreate(String code, String name,OperParamDto operParamDto) throws Exception;

	public void updateByAll(LinkageModel parentLlinkageModel, List<LinkageModel> childList,OperParamDto operParamDto) throws Exception;

}
